package com.sword.exception;

public class BusinessException extends Exception {
	
	private String code;
	
	private String message;
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }
    public BusinessException(String code) {
        this.code = code;
    }
    
    public String getMessage() {
    	return this.message;
    }
    
    public String getCode() {
    	return this.code;
    }
    
	public void setMessage(String message) {
		this.message = message;
	}
    
    
}
